<?php
namespace app\admin\validate;

use think\Validate;

class Category extends Validate {

    protected $rule    = [
        'cate_name' => 'require',
        'cate_order' => 'require|number|between:1,100'
    ];
    protected $message = [
        'cate_name.require'  => '请填写栏目名称！',
        'cate_order.require'  => '请输入排序',
        'cate_order.number'  => '排序必须为数字',
        'cate_order.between' => '排序必须在1到100之间'
    ];
}